package wox.lonice.btctrade.service;

import com.alibaba.fastjson.JSONObject;
import wox.lonice.btctrade.exception.TradeException;

/**
 * <p>描述：抽象接口</p>
 *
 * @author LoNice
 * @Date 2018/5/28 10:01
 */
public interface TradeService {

    /**
     * 获取当前最新行情
     */
    JSONObject ticker(String domain, String area, String coin) throws TradeException;

    /**
     * 账户信息
     */
    JSONObject depth(String domain, String area, String coin) throws TradeException;

    /**
     * 十档+涨跌幅
     */
    JSONObject order(String domain, String area, String coin) throws TradeException;

    /**
     * 市场深度
     */
    JSONObject accountBalance(String domain) throws TradeException;

    /**
     * 挂单查询
     */
    JSONObject trustList(String domain, String area, String coin) throws TradeException;

    /**
     * 查询订单信息
     */
    JSONObject trustView(String domain, String area, String coin, String id) throws TradeException;

    /**
     * 取消订单
     */
    JSONObject trustCancel(String domain, String area, String coin, String id) throws TradeException;

    /**
     * 下单
     */
    JSONObject trustAdd(String domain, String area, String coin, String amount, String price, String type) throws TradeException;
}
